package cn.ggcms.cms.biz;

import java.util.List;

import cn.ggcms.cms.dao.CommentDao;
import cn.ggcms.cms.vo.Comment;

public class CommentBiz implements CommentDao {

	private CommentDao commentDao  ;
	
	public void setCommentDao(CommentDao commentDao) {
		this.commentDao = commentDao;
	}

	public boolean doDeleteCommentById(int id) {
		return this.commentDao.doDeleteCommentById(id);
	}

	public boolean doInsertComment(Comment comment) {
		return this.commentDao.doInsertComment(comment);
	}

	public Comment finCommentById(int id) {
		return this.commentDao.finCommentById(id);
	}

	public List<Comment> finComments() {
		return this.commentDao.finComments();
	}

	public Comment findComment(Comment comment) {
		return this.commentDao.findComment(comment);
	}
	

	public boolean doUpdateComment(Comment comment) {
		return this.commentDao.doUpdateComment(comment);
	
	}
	
}
